//
//  BaseViewModel.h
//  DebugDemo
//
//  Created by XFB on 2018/11/16.
//  Copyright © 2018年 ZhouCheng. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^SuccessBlock)(id data);
typedef void(^FailureBlock)(id data);

@interface BaseViewModel : NSObject
{
    NSString *name;
}

@property (nonatomic, copy) SuccessBlock successBlock;
@property (nonatomic, copy) FailureBlock failureBlock;

- (void)initWithBlock:(SuccessBlock)successBlock
         failureBlock:(FailureBlock)failureBlock;

@end

NS_ASSUME_NONNULL_END
